import i18n from '@/language/index'

export const t = i18n.global.t

export default function UserModel(id, roleName,menuIds,enableTag) {
    this.id = id;
    this.roleName = roleName;
    this.menuIds = menuIds;
    this.enableTag = enableTag || true;

    this.rules = {
        roleName: [
            {required: true, message: t('role.1'), trigger: 'blur'},
        ]
    }
}